/**
 * Created by zhanghaibin on 2016/12/29.
 */
define(['js/tools/cookie'],function(){
    return {
        //获取当前用户信息
        getCur:function(){
            var u = getCookie('ync_user');
            alert(u);
        },
        //用户注册
        register:function(){

        },
        //用户登录
        login:function(username){
            setCookie('ync_user',username,1);
        }
    }
});